import services from "@/utils/request";

// 获取 新鲜好物
export const getNewApi = () => services.get('/home/new');

// 获取 人气推荐
export const getHotApi = () => services.get('/home/hot');

// 获取 商品列表
export const getGoodsApi = () => services.get('/home/goods');

// 获取轮播图数据
export function getBannerAPI(params = {}) {
    // 默认为1，商品为2
    const { distributionSite = '1' } = params;
    return services({
        url: "/home/banner",
        params: {
            distributionSite
        }
    })
}